// #####################################
// File     : motor.h
// Author   : Chris Meaclem
// Date     : 29/07/2011
// Release  : Intermediate
// Purpose  : 
// Notes    : 
// #####################################
#ifndef __MOTOR_H__
#define __MOTOR_H__

/*PINOUT:

LEFT MOTOR:
	ENABLE:	PB5
	FOR:	PB4
	REV:	PB3
	
RIGHT MOTOR:
	ENABLE:	PB0
	FOR:	PB1
	REV:	PB2
	
END - Pinout*/


/*Includes:*/

/*END - Includes:*/
/*Definitions:*/
#define uint unsigned int

/*END - Definitions:*/
/*Globals:*/
enum motorID {motor_LeftID = 0, motor_RightID, motor_BothID}; // May not need this, just to distinguish the motors apart. Use #define instead?
enum vechileStates {vechile_Stop = 0, vechile_For, vechile_Left, vechile_Right, vechile_Rev};/*Define the vechile states that the vechile can be in*/

/*END - Globals:*/
/*Prototypes:*/
void motor_Init(void);
uint vechile_Drive(enum vechileStates state);//state belongs to the set 'vechileStates'

/*END - Prototypes:*/


#endif // #ifndef __MOTOR_H__
